﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="right.aspx.cs" Inherits="SysManage_right" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>首页面</title>
    <link href="../CSS/CSS.CSS" type="text/css" rel ="stylesheet" />
      <script language="javascript" type="text/javascript"  >
   var tgs; 
   var tmp_background_val; 
   function tog(n,flags)
   { 
     //傳過來本次點擊前的的背景顏色 
     if (tgs){ 
     tgs.style.background= tmp_background_val ; 
   } 
   //考慮到連續點同一個對象的情況,就不要改變保留的顏色 
    n.style.background= '#A7C0F9' ; 
    tmp_background_val=flags;
    tgs=n; 
  } 
  
//取出月日
function initArray()
{
	for(i=0;i<initArray.arguments.length;i++)
	this[i]=initArray.arguments[i];
}
var isnMonths=new initArray("1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月");
var isnDays=new initArray("星期日","星期一","星期二","星期三","星期四","星期五","星期六","星期日");
today=new Date();

//取出年
function getFullYear(d)
{//d is a date object
	yr=d.getYear();
	if(yr<1000)
	yr+=1900;return yr;
}
</script>
</head>
<body style =" background-image :url('../images/hit_bg.gif');">
    <form id="form1" runat="server">
<table  style ="width :100%; height :100%;" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align ="center" valign ="middle" >    
        <table border="0" cellpadding="0" cellspacing="0" >
          <tr>
            <td valign ="middle" style ="background-image :url('../images/BackIndexPic.gif'); width :1000; height :552;" >
              <table style ="width :980; height :552;"  >
                <tr>
                  <td style ="width :20;">&nbsp;</td>
                  <td  valign ="top"  style ="width :450;">
                      <div><img src ="../images/news.gif" alt ="" /></div>
                      <asp:GridView ID="GridView1" runat="server" Width="100%" DataKeyNames="id"
                        ForeColor="#333333" AutoGenerateColumns="False" AllowSorting="False" AllowPaging="False"  PageSize="20" EmptyDataText="没搜索到相匹配的数据" BorderColor="LightSkyBlue" BorderStyle="None" OnRowDataBound="GridView1_RowDataBound"  >        
                        <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="#F9F9FB" />
                        <RowStyle BackColor="#F9F9FB" ForeColor="#333333" Height="24px"  BorderStyle="Dotted" />
                        <AlternatingRowStyle BackColor="#EFEFF8" />
                        <HeaderStyle BackColor="#E3E7F0" Height="25px" Font-Bold="False" Font-Italic="False" />
                            <Columns>
                                <asp:BoundField DataField="BigClassName" HeaderText="新闻类别" SortExpression="BigClassName">
                                    <ItemStyle  Width="15%"   HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:HyperLinkField DataNavigateUrlFields="id" DataTextField ="Title" SortExpression ="Title" DataNavigateUrlFormatString="../News/NewDetail.aspx?ID={0}" HeaderText="新闻标题" Target="_blank" /> 
                                <asp:BoundField DataField="Addtime" HeaderText="发布日期" SortExpression="Addtime" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False">
                                    <ItemStyle  Width="20%" HorizontalAlign="Left" />
                                </asp:BoundField>
                            </Columns>
                          </asp:GridView>                  
                  </td>
                  <td valign ="top"  style ="width :450;">
                    <div><img src ="../images/DocImg.gif" alt ="" /></div>
                      <asp:GridView ID="GridView2" runat="server" Width="100%" DataKeyNames="id"
                        ForeColor="#333333" AutoGenerateColumns="False" AllowSorting="False" AllowPaging="False"  PageSize="20" EmptyDataText="没搜索到相匹配的数据" BorderColor="LightSkyBlue" BorderStyle="None" OnRowDataBound="GridView2_RowDataBound"  >        
                        <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="#F9F9FB" />
                        <RowStyle BackColor="#F9F9FB" ForeColor="#333333" Height="24px"  BorderStyle="Dotted" />
                        <AlternatingRowStyle BackColor="#EFEFF8" />
                        <HeaderStyle BackColor="#E3E7F0" Height="25px" Font-Bold="False" Font-Italic="False" />
                            <Columns>
                                <asp:BoundField DataField="Name" HeaderText="资料名称" SortExpression="Name">
                                    <ItemStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="FileCreatDT" HeaderText="上传日期" SortExpression="FileCreatDT" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False">
                                    <ItemStyle  Width="20%" HorizontalAlign="Left" />
                                </asp:BoundField>
                            </Columns>
                          </asp:GridView>
                  
                  
                  </td>
                </tr>
              </table>
            </td>
         </tr>
        </table> 
     </td>
  </tr>
</table>     
    </form>
</body>
</html>
